package com.app.asktom.component;

import java.util.HashMap;
import java.util.Map;

public class Config {
	private Map<String,String> map = new HashMap<String,String>();
	
	public static Config getInstance() {
		return ConfigHolder.INSTANCE;
	}
	
	private static class ConfigHolder {
		public static final Config INSTANCE = new Config();
	}
	
	private Config() {
		this.map.put("baseUrl", "http://www.noypiapps.com/NPAPP/index.php");
	}
	
	public void set(String key, String value) {
		this.map.put(key, value);
	}
	
	public String get(String key) {
		String value = "";
		if(this.map.containsKey(key)) {
			value = this.map.get(key);
		}
		return value;
	}
}
